
#include <board.h>
#include <rtthread.h>
#include <drv_gpio.h>
#include "rtdbg.h"
#include <rtdevice.h>
#include "drv_lcd.h"
#include "applications/flash_25q64/25q64.h"
// #ifndef RT_USING_NANO
// #include <rtdevice.h>
// #endif /* RT_USING_NANO */

int main(void)
{
    LOG_D("System Clock information");
    LOG_D("SYSCLK_Frequency = %d", HAL_RCC_GetSysClockFreq());
    LOG_D("HCLK_Frequency   = %d", HAL_RCC_GetHCLKFreq());
    LOG_D("PCLK1_Frequency  = %d", HAL_RCC_GetPCLK1Freq());
    LOG_D("PCLK2_Frequency  = %d", HAL_RCC_GetPCLK2Freq());
    // rt_uint8_t buf[4] = {11, 22, 33, 44};
    // rt_uint8_t buf_1[4] = {0};
    
    // while (1)
    // {
    //     buf[0]++;
    //     flash_25q64_write(buf, 0, 4);
    //     flash_25q64_read(buf_1, 0, 4);
    //     rt_kprintf("buf[0]:%d\nbuf:%d,%d,%d,%d\n", buf[0], buf_1[0], buf_1[1], buf_1[2], buf_1[3]);
    //     rt_thread_mdelay(2000);
    // }
}
